import { Controller, Get } from '@nestjs/common';
import { Partervice } from '../services/part.service';
import { Part } from '../entity/part.entity';
@Controller('api')
export class PartController {
  constructor(private readonly Partervice: Partervice) {}

  @Get('part')
  getHello(): Promise<Part[]> {
    return this.Partervice.findAll(1);
  }
}
